// 配置编译环境和线上环境之间的切换

const env = process.env
let envUrl = ''
// 图表库为avue和pig2套地址
const iconfontVersion = ['567566_qo5lxgtishg']
const iconfontUrl = '//at.alicdn.com/t/font_1727946_0yqivf8c9f6.css'
const iconfontSymbol = '//at.alicdn.com/t/font_1727946_0yqivf8c9f6.js'
const codeUrl = `${window.location.origin}/code`
const actUrl = `${window.location.origin}/act/modeler.html?modelId=`
if (env.NODE_ENV === 'development') {
  envUrl = 'http://192.168.10.162'
} else if (env.NODE_ENV === 'production') {
  envUrl = ''
} else if (env.NODE_ENV === 'test') {
  envUrl = ''
}
const baseUrl = envUrl
export {
  baseUrl,
  actUrl,
  iconfontUrl,
  iconfontVersion,
  iconfontSymbol,
  codeUrl,
  env
}
